package com.zhumo.sz.entity.bus;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.checkerframework.checker.units.qual.A;

import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * bus_order_detail(公交车单线订单子表)
 * id BIGINT 自增id PRIMARY KEY
 * bus_order_id BIGINT 订单号 PRIMARY KEY
 * user_id VARCHAR 用户id FOREIGH KEY
 * line_code BIGINT 公交线路编码 FOREIGH KEY
 * start_site_code BIGINT 起始站点编码 FOREIGH KEY
 * start_site_name VARCHAR 上车站点
 * end_site_code BIGINT 结束站点编码 FOREIGH KEY
 * end_site_name VARCHAR 下车站点
 * order_amount DECIMAL 订单应付金额
 * payment_amount DECIMAL 实际应付金额
 * payment_method INT 支付方式(投币，刷码)
 * app VARCHAR APP名称
 * if_stu TINYINT 是否学生票
 * if_deformed TINTINT 是否残障人士门票
 * if_old TINYINY 是否老年卡刷卡
 * one_card_reduction_amount DECIMAL 深圳一卡通减免金额
 * ali_play_reduction_amount DECIMAL 支付宝活动减免金额
 * care_pass_reduction_amount DECIMAL 深关爱通减免金额
 * ols_reduction_amount DECIMAL 老年卡减免金额
 * order_time TIMESTAMP 订单推送时间
 * payment_time TIMESTAMP 支付时间
 * create_time TIMESTAMP 创建时间
 * update_time TIMESTAMP 更新时间
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "公交车订单子",description = "公交车订单子表")
public class BusOrderDetail {

    @ApiModelProperty("自增主键")
    private Long id;

    @ApiModelProperty("公交订单唯一标识")
    private String busOrderId;

    @ApiModelProperty("用户id")
    private String userId;

    @ApiModelProperty("线路编码")
    private String lineCode;

    @ApiModelProperty("起始站点编码")
    private Long startSiteCode;

    @ApiModelProperty("起始站点名称")
    private String startSiteName;

    @ApiModelProperty("结束站点编码")
    private Long endSiteCode;

    @ApiModelProperty("结束站点名称")
    private String endSiteName;

    @ApiModelProperty("订单金额")
    private BigDecimal orderAmount;

    @ApiModelProperty("应付金额")
    private BigDecimal paymentAmount;

    @ApiModelProperty("支付方式")
    private String paymentMethod;

    @ApiModelProperty("门票类型")
    private String ticketType;

    @ApiModelProperty("扫码App")
    private String app;

    @ApiModelProperty("是否学生票")
    private boolean isStu;

    @ApiModelProperty("是否残疾人")
    private boolean isDeformed;

    @ApiModelProperty("是否老年卡")
    private boolean isOld;

    @ApiModelProperty("上行标识")
    private boolean isUpper; //是否上行

    @ApiModelProperty("深圳一卡通减免金额")
    private  BigDecimal oneCardReductionAmount;

    @ApiModelProperty("支付宝减免金额")
    private BigDecimal aliPlayReductionAmount;

    @ApiModelProperty("深圳关爱通减免金额")
    private BigDecimal carePassReductionAmount;

    @ApiModelProperty("老年人减免金额")
    private BigDecimal oldReductionAmount;

    @ApiModelProperty("上车时间")
    private Timestamp startTime;

    @ApiModelProperty("下车时间")
    private Timestamp endTime;

    @ApiModelProperty("订单推送时间")
    private Timestamp orderTime;

    @ApiModelProperty("支付时间")
    private Timestamp paymentTime;


    @ApiModelProperty("创建时间")
    private Timestamp createTime;

    @ApiModelProperty("状态更新时间")
    private Timestamp updateTime;
}
